package com.csun.cmny.provider.model.domain;

import com.csun.cmny.core.mybatis.BaseEntity;
import lombok.Data;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Table(name = "cn_omc_service_order")
public class OmcServiceOrder extends BaseEntity {

    /**
     * 工单编号
     */
    @Column(name = "order_no")
    private String orderNo;



    /*配送详细地址*/
    @Column(name = "detailed_address")
    private String detailedAddress;

    /*配送地址百度地图经度*/
    private BigDecimal longitude;

    /*配送地址百度地图纬度*/
    private BigDecimal latitude;

    /*一级服务类别id*/
    @Column(name = "service_first_level_id")
    private Long serviceFirstLevelId;

    /*一级服务类别名称*/
    @Column(name = "service_first_level_name")
    private String serviceFirstLevelName;

    /*二级服务类别服务id*/
    @Column(name = "service_second_level_id")
    private Long serviceSecondLevelId;

    /*二级服务类别名称*/
    @Column(name = "service_second_level_name")
    private String serviceSecondLevelName;

    /**
     * 工单来源 1-app下单 2-平台下单 3-政府下单
     */
    @Column(name = "order_source")
    private Integer orderSource;

    /**
     * 下单人id
     */
    @Column(name = "user_id_put")
    private Long userIdPut;

    /**
     * 下单人姓名
     */
    @Column(name = "user_name_put")
    private String userNamePut;

    /**
     * 老下单人电话
     */
    @Column(name = "user_phone")
    private String userPhone;

    /**
     * 老人id
     */
    @Column(name = "oldman_id")
    private Long oldmanId;

    /**
     * 老人姓名
     */
    @Column(name = "oldman_name")
    private String oldmanName;

    /*预约服务时间*/
    @Column(name = "service_subscribe_time")
    private Date serviceSubscribeTime;

    /**
     * 服务结束时间
     */
    @Column(name = "service_end_time")
    private Date serviceEndTime;

    /**
     * 商家id
     */
    @Column(name = "merchant_id")
    private Long merchantId;

    /**
     * 商家名称
     */
    @Column(name = "merchant_name")
    private String merchantName;



    /**
     * 接单人
     */
    @Column(name = "user_id_get")
    private Long userIdGet;

    /**
     * 接单人姓名
     */
    @Column(name = "user_name_get")
    private String userNameGet;

    /**
     * 订单状态
     */
    @Column(name = "order_status")
    private Integer orderStatus;

    /**
     * 支付状态
     */
    @Column(name = "is_payed")
    private Integer isPayed;


    /*
    * 投诉状态 0-无投诉 1-待处理 2-已处理*/
    @Column(name = "complaint_status")
    private Integer complaintStatus;

    /**
     * 改派人
     */
    @Column(name = "change_id_get")
    private Long changeIdGet;

    /**
     * 改派人姓名
     */
    @Column(name = "change_name_get")
    private String changeNameGet;

    /*
    * 订单总价
    * */
    private BigDecimal total;


    /*佣金总额*/
    @Column(name = "amount_commission")
    private BigDecimal amountCommission;

    /*预计到达*/
    @Column(name = "estimate_time")
    private Date estimateTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 组织Id
     */
    @Column(name = "group_id")
    private Long groupId;


}